package code.bigmama.controller;

import java.util.HashMap;

import code.bigmama.context.PostContext;

public class DiaryController
{
	HashMap<String, PostContext>	mMap	= null;

	public DiaryController()
	{
		mMap = new HashMap<String, PostContext>();
	}

	public void add(String key, PostContext value)
	{
		mMap.put(key, value);
	}

	public void remove(String key)
	{
		mMap.remove(key);
	}

	public void clear()
	{
		if (mMap.isEmpty() == false)
		{
			mMap.clear();
		}
	}

	public void get(String key)
	{
		mMap.get(key);
	}
	
	public boolean isEmpty()
	{
		return mMap.isEmpty();
	}
}
